Skip to content

Use jinja2 FileSystemLoader instead of PackageLoader for compat newer meson-python and editable installs #62123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2025

Conversation

jorisvandenbossche
Copy link
Member

xref #62086, #62110 and mesonbuild/meson-python#716

Currently, if you use a more recent meson-python version than the 0.13 we have pinned in the dev env yml file, and install pandas in an editable mode in you local development environment, any usage of the styler functionality gives a ValueError: PackageLoader could not find a 'io/formats/templates' directory in the 'pandas' package. error.

This change as suggested by @WillAyd (extracted from #60681) seems to work fine for me locally

…newer meson-python and editable installs

Co-Authored-By: Will Ayd <[email protected]>
@jorisvandenbossche jorisvandenbossche added Build Library building on various platforms Styler conditional formatting using DataFrame.style labels Aug 15, 2025
@WillAyd WillAyd merged commit 91d590d into pandas-dev:main Aug 15, 2025
171 of 198 checks passed
@WillAyd
Copy link
Member

WillAyd commented Aug 15, 2025

Thanks @jorisvandenbossche

@jorisvandenbossche jorisvandenbossche deleted the jinja2-loader branch August 15, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants